/////////////////////////////////////////////////////////////////////////
//
// Amuse Engine SDK - core/memory
// Copyright(c) 2014.  All Rights Reserved
//
// File:		AEMemoryConfig.cpp
// Author:		Gianluca Belardelli
// Date:		20/03/2014
//
/////////////////////////////////////////////////////////////////////////
#include <AECore.h>

AEMemoryConfig *AEMemoryConfig::m_lpInstance = 0L;

AEMemoryConfig::~AEMemoryConfig( void )
{
	//if( m_lpInstance )
		//delete[] m_lpInstance;
}

AEMemoryConfig &AEMemoryConfig::GetInstance( void )
{
	return *m_lpInstance;
}

AEMemoryConfig *AEMemoryConfig::GetInstancePtr( void )
{
	return m_lpInstance;
}

void AE_CALL AEMemoryConfig::ReplaceInstance( AEMemoryConfig *lpPtr )
{
	if( m_lpInstance )
		delete m_lpInstance;

	m_lpInstance = lpPtr;
}
